package com.suse.service.admin.edu.model.param;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

@Data
@ApiModel(value = "TeacherSaveParam",description = "讲师添加参数")
public class TeacherSaveParam {

    @ApiModelProperty(value = "讲师名称",required = true)
    @NotEmpty(message = "讲师名称不能为空")
    private String name;

    @ApiModelProperty(value = "讲师简介",required = true)
    @NotEmpty(message = "讲师简介不能为空")
    private String intro;

    @ApiModelProperty(value = "讲师资历",required = true)
    @NotEmpty(message = "讲师资历不能为空")
    private String career;

    @ApiModelProperty(value = "讲师头衔: 1 高级讲师 2 首席讲师",required = true)
    @NotNull(message = "讲师头衔不能为空")
    private Integer level;

    @ApiModelProperty(value = "讲师头像",required = true)
    @NotEmpty(message = "讲师头像不能为空")
    private String avatar;

    @ApiModelProperty(value = "讲师排序",required = true)
    @NotNull(message = "讲师排序不能为空")
    private Integer sort;

}
